<?php

App::uses('AppModel', 'Model');

/**
 * Roster Model
 *
 * @property user $ros_userid
 */
class Roster extends AppModel {

    /**
     * Primary key field
     *
     * @var string
     */
    public $primaryKey = 'ros_id';


    //The Associations below have been created with all possible keys, those that are not needed can be removed

    /**
     * hasMany associations
     *
     * @var array
     */
    public $hasAndBelongsToMany = array(
        'User' => array(
            'className' => 'User',
            'jointTable' => 'rosters_users',
            'foreignKey' => 'roster_id',
            'associationForeignKey' => 'user_id'
        ),
        'Time' => array(
            'className' => 'Time',
            'jointTable' => 'rosters_times',
            'foreignKey' => 'ros_id',
            'associationForeignKey' => 'time_id'
        )
    );
          

}
